import React, { Suspense } from 'react'
// import MyLazy from './MyLazy'
const MyLazy = React.lazy(() => import('./MyLazy'))

function LazyComponent () {
    return (
        <Suspense fallback={<div style={{ color: 'red' }}>loading....</div>}>
            <MyLazy />
        </Suspense>
    )
}

export default LazyComponent